#ifndef TARGET_FLASH_H
#define TARGET_FLASH_H
#define MEM_XML_GET
typedef enum TargetFlashType
{
    RAM_Type,
    Flash_Type,
    Exflash_Type
}TargetFlashType;
typedef struct TargetFlash
{
    unsigned int Addr;
    unsigned int Length;
    unsigned int BlockSize;
    TargetFlashType Type;
}TargetFlash;
char *mem_xml_get(void);
unsigned int TargetFlashErase(unsigned int addr,unsigned int length);
unsigned int TargetFlashProgram(unsigned int addr,char*buf,unsigned int len);
unsigned int IsFlash(unsigned int addr,unsigned int len);
unsigned int TargetFlashWrite(unsigned int addr,char*buf,unsigned int len);
#endif